import random

minNum = 667
i = 1
while i <= 20:
    num = random.randint(1, 666)
    print(f"第{i}个随机数是{num}")
    i += 1
    if num < minNum:
        minNum = num
print(f"这20个随机数中最小值为{minNum}")
